package com.abhimanyu.bootstrap.writers;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.batch.item.ItemWriter;
import org.springframework.stereotype.Component;

import com.abhimanyu.messaging.model.IMessage;

@Component
public class DummyMessageWriter implements
		ItemWriter<IMessage> {
	Logger logger = Logger.getLogger(getClass());
	public void write(List<? extends IMessage> messages) throws Exception {
		logger.info("************************************************SENDING FOLLOWING MESSAGES ************************************************");
		logger.info(messages);
		
	}
}
